﻿using System;
using System.ComponentModel.DataAnnotations;
using Transport.Core.Models.Settings;

namespace Transport.Core.Models.Parcels
{
    public class Tracking
    {
        [Key]
        public int TrackingId { get; set; }
        [ForeignKey("StateProvince")]
        public int StateProvinceId { get; set; }
        public virtual StateProvince StateProvince { get; set; }
        [ForeignKey("Parcel")]
        public int ParcelId { get; set; }
        public virtual Parcel Parcel { get; set; }
        public int Status { get; set; }
        public DateTime DateOfSending { get; set; }
        public DateTime CreateDate { get; set; }
        public bool IsDeleted { get; set; }
        //For saying reason why parcel be return
        public string Description { get; set; }
        public int UserId { get; set; }
    }
}
